package cn.gson.springboot.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the drugrefund_recordtb_px database table.
 * 
 */
@Entity
@Table(name="drugrefund_recordtb_px")
@NamedQuery(name="DrugrefundRecordtbPx.findAll", query="SELECT d FROM DrugrefundRecordtbPx d")
public class DrugrefundRecordtbPx implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="drugrefund_recordtb_id")
	private int drugrefundRecordtbId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="ty_date")
	private Date tyDate;

	@Column(name="ty_zje")
	private BigDecimal tyZje;

	@Column(name="ty_zsl")
	private int tyZsl;

	private String yptfr;

	//bi-directional many-to-one association to MedicalCardPx
	@ManyToOne
	@JoinColumn(name="mzcard_id")
	private MedicalCardPx medicalCardPx;

	public DrugrefundRecordtbPx() {
	}

	public int getDrugrefundRecordtbId() {
		return this.drugrefundRecordtbId;
	}

	public void setDrugrefundRecordtbId(int drugrefundRecordtbId) {
		this.drugrefundRecordtbId = drugrefundRecordtbId;
	}

	public Date getTyDate() {
		return this.tyDate;
	}

	public void setTyDate(Date tyDate) {
		this.tyDate = tyDate;
	}

	public BigDecimal getTyZje() {
		return this.tyZje;
	}

	public void setTyZje(BigDecimal tyZje) {
		this.tyZje = tyZje;
	}

	public int getTyZsl() {
		return this.tyZsl;
	}

	public void setTyZsl(int tyZsl) {
		this.tyZsl = tyZsl;
	}

	public String getYptfr() {
		return this.yptfr;
	}

	public void setYptfr(String yptfr) {
		this.yptfr = yptfr;
	}

	public MedicalCardPx getMedicalCardPx() {
		return this.medicalCardPx;
	}

	public void setMedicalCardPx(MedicalCardPx medicalCardPx) {
		this.medicalCardPx = medicalCardPx;
	}

}